package com.hyh.baowenlioaworking.mapper;

import com.hyh.baowenlioaworking.model.Department;

import java.util.List;
import java.util.Map;

/**
 * @BelongsPackage: com.hyh.baowenlioaworking.mapper
 * @ClassName DepartmentMapper
 * @Author: hyhWTX
 * @CreateTime: 2023-07-21  14:02
 * @Description: TODO (一句话描述以下该类的功能)
 * @Version: 1.0
 */
public interface DepartmentMapper{

    List<Department> queryAll();

    int addDepartment(Department department);

    int updateDepartment(Department department);

//    int deleteDepartment(Integer id);

    int deleteAll();

    List<Department> findDepartmentByPage(Map<String, Object> map);

    int  deleteDepartmentByIdWithCheck(int departmentId);
}